$OpenBSD: patch-configure_py,v 1.2 2016/08/30 16:02:17 landry Exp $
--- configure.py.orig	Mon Jul 25 15:55:28 2016
+++ configure.py	Tue Aug  9 07:49:53 2016
@@ -1984,7 +1984,18 @@ def run_command(cmd, verbose):
     """ Run a command and display the output if requested.  cmd is the command
     to run.  verbose is set if the output is to be displayed.
     """
+    try:
+        localbase = os.environ["LOCALBASE"]
+    except KeyError:
+        localbase = "/usr/local"
+    try:
+        x11base = os.environ["X11BASE"]
+    except KeyError:
+        x11base = "/usr/X11R6"
 
+    cmd = cmd.replace("${LOCALBASE}", localbase).replace("$(LOCALBASE)", localbase)
+    cmd = cmd.replace("${X11BASE}", x11base).replace("$(X11BASE)", x11base)
+
     if verbose:
         sys.stdout.write(cmd + "\n")
 
@@ -2689,7 +2700,7 @@ Type 'no' to decline the terms of the license.
             sys.stdout.flush()
 
             try:
-                resp = sys.stdin.readline()
+                resp = "yes"
             except KeyboardInterrupt:
                 raise SystemExit
             except:
